package com.melody.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 最近播放
 * @TableName play_history
 */
@TableName(value ="play_history")
@Data
public class PlayHistory implements Serializable {
    /**
     * 最近播放的id
     */
    @TableId(value = "history_id")
    private Integer historyId;

    /**
     * 关联用户信息
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 关联音乐信息
     */
    @TableField(value = "music_id")
    private Integer musicId;

    /**
     * 播放时间
     */
    @TableField(value = "play_time")
    private LocalDateTime playTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标记，0:未删除,1:已删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}